package cn.wwcyc.service;

import cn.wwcyc.domain.TjDw;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author aa
* @description 针对表【TJ_DW】的数据库操作Service
* @createDate 2024-03-08 10:36:56
*/
public interface TjDwService extends IService<TjDw> {

//    TjDw getChildrenById(Long dwid);

    TjDw getDwTreeById(Long dwid);



    List<TjDw> DwTreeToList(List<TjDw> tjDwList, TjDw root);

    List<TjDw> getSelfAndDescendantList(Long dwid);

    List<Long> getSelfAndDescendantIdList(Long dwid);

    List<Long> getPathByid(Long id, Long topDwId);
}
